-
Notifications
You must be signed in to change notification settings - Fork 49
Add Tor section to User Book and Architecture Book #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI I am unsure of continuing the architecture book in the current form: #476.
## Configuration for cuprated's Tor component | ||
[tor] | ||
## Enable Tor network by specifying how to connect to it. | ||
## | ||
## When "Daemon" is set, the Tor daemon address to use can be | ||
## specified in `tor.daemon.address`. | ||
## | ||
## Type | String | ||
## Valid values | "Arti", "Daemon", "Off" | ||
## Examples | "Arti" | ||
mode = "Off" # <----- Here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just the key + field is good.
## Configuration for cuprated's Tor component | |
[tor] | |
## Enable Tor network by specifying how to connect to it. | |
## | |
## When "Daemon" is set, the Tor daemon address to use can be | |
## specified in `tor.daemon.address`. | |
## | |
## Type | String | |
## Valid values | "Arti", "Daemon", "Off" | |
## Examples | "Arti" | |
mode = "Off" # <----- Here | |
[tor] | |
mode = "Off" # <----- Here |
[p2p.tor_net] | ||
#... | ||
## Enable Tor inbound onion server. | ||
## | ||
## [...] | ||
## | ||
## Type | boolean | ||
## Valid values | false, true | ||
## Examples | false | ||
inbound_onion = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[p2p.tor_net] | |
#... | |
## Enable Tor inbound onion server. | |
## | |
## [...] | |
## | |
## Type | boolean | |
## Valid values | false, true | |
## Examples | false | |
inbound_onion = true | |
[p2p.tor_net] | |
inbound_onion = true |
### Arti | ||
|
||
If you are using Arti, that's it. `cuprated` will auto-generate a hidden service at startup. | ||
|
||
A few notes: | ||
- The onion address is generated randomly. | ||
- The onion address is persistent across reboots. | ||
- The onion address cannot be changed without deleting the Arti state directory. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do users find the generated arti
onion address?
In the `[tor.daemon]` section, | ||
The `listening_addr` field must be set to the IP and port on which `cuprated` will listen for connections coming from your Tor daemon. This is the destination of your hidden service. | ||
``` | ||
HiddenServicePort 18083 [127.0.0.1:18090] <-- This part |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO invalid syntax is confusing, how is this?
HiddenServicePort 18083 [127.0.0.1:18090] <-- This part | |
# This part | |
# v | |
HiddenServicePort 18083 127.0.0.1:18090 |
HiddenServicePort [18083] 127.0.0.1:18090 | ||
^ | ||
The virtual port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HiddenServicePort [18083] 127.0.0.1:18090 | |
^ | |
The virtual port | |
HiddenServicePort 18083 127.0.0.1:18090 | |
# ^ | |
# The virtual port |
|
||
If everything has been set correctly, your node will start to broadcast its onion address to other Tor peers in order to be reached. | ||
|
||
## Anonymizing cuprate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cuprated
or Cuprate?
What
Part of ongoing Tor support development for Cuprate
Follows: #446, #481 and #509
Changelog
This is the first version of the Tor section for the User Book and Architecture Book.
The User Book Tor section treats the following topics:
The Architecture Book Tor section treats the following topics: